package com.wframe.project.jnd.dao;

import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Repository;

import com.frame.database.JdataBean;
import com.wframe.framework.database.BaseDao;
import com.wframe.framework.database.ParmSqlVo;
import com.wframe.framework.util.ConversionUtil;

@Repository
public class SmsPushDao extends BaseDao{

	public List<JdataBean> querySmsPush(int size) throws Exception{
		
		return querySql("select * from wb_smspush order by id ", null,size,1).getList();
	}
	public void tagSmsPush(String... ids) throws Exception{
		if(ids!=null && ids.length>0){
			ParmSqlVo vo=ConversionUtil.arrayToInSql(ids);
			execute2("delete from wb_smspush where id in ("+vo.getInSql()+")",vo.getParms());
		}
	}
}
